package com.File.A01File;

import java.io.File;

public class Test02 {
    public static void main(String[] args) {
        String str = "D:\\\\TestFile\\\\TestFileRead";
        File file = new File(str);
        System.out.println(haveAVI(file));
        
    }
    public static Boolean haveAVI(File file){
        File[] files = file.listFiles(e -> e.getName().endsWith(".avi"));
        if (files != null) {
            return files.length > 0;
        }
        return false;
    }
}
